<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div>
        <button id="add">+</button>
        <span id="num">0</span>
        <button id="sub">-</button>
    </div>
    <script>
        let num=100;
        document.getElementById("num").innerHTML=num;
        document.getElementById("add").onclick=function(){
            num+=1;
            document.getElementById("num").innerHTML=num;
        }
        document.getElementById("sub").onclick=function(){
            num-=1;
            document.getElementById("num").innerHTML=num;
        }



    </script>


</body>
</html>